
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@Component({
  selector: 'app-list',
  templateUrl: './list.component.html',
  styleUrls: ['./list.component.less']
})
export class ListComponent implements OnInit {
  isShow:boolean=true;
  inputs = new FormControl('');
  
  public name = "张三";
  eventFunc(){
      console.log('aa');
  }
  constructor() {
    this.inputs.setValue('张三');
   }
  ngOnInit() {
  }

}